﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace Acme.BookStore.FormWhx.Ruku
{
    public class RuKuModel:AuditedAggregateRoot<Guid>
    {
        /// <summary>
        /// 入库单号
        /// </summary>
        public string RuKuNo { get; set; }
        /// <summary>
        /// 入库类型
        /// </summary>
        public RuType RuKuType { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public RuStatus ? RuKuStatus { get; set; } 
        /// <summary>
        /// 入库日期
        /// </summary>
        public DateTime ? RuKuDate { get; set; } //入库日期
        /// <summary>
        /// 仓库名称
        /// </summary>
        public int StorehouseName { get; set; }  //动态下拉框
        /// <summary>
        /// 关联单号
        /// </summary>
        public string ? ConnectNo { get; set; }
        /// <summary>
        /// 入库货品
        /// </summary>
        public string? ItemName { get; set; }
        /// <summary>
        /// 经办人
        /// </summary>
        public string? AttnName { get; set; }
        /// <summary>
        /// 入库数量
        /// </summary>
        public int? RuKuNum { get; set; } 
        /// <summary>
        /// 入库金额
        /// </summary>
        public decimal? RuKuPrice { get; set; }
        /// <summary>
        /// 所在部门
        /// </summary>
        public string? DepartName { get; set; } 
        /// <summary>
        /// 审核人
        /// </summary>
        public string? ShenName { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime ? ShenDate { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string? Provider { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string? PhoneName { get; set; }
        /// <summary>
        /// 联系方式
        /// </summary>
        public string? PhoneNum { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        public string? Picture { get; set; } 
        protected RuKuModel()
        {
        }
        public RuKuModel(Guid id,string rukuNo, RuType rukuType, RuStatus rukuStatus, DateTime rukuDate, int storehouseName, string connectNo, string itemName, string attnName, int rukuNum, decimal rukuPrice, string departName, string shenName, DateTime? shenDate, string provider, string phoneName, string phoneNum, string remark, string picture):base(id)
        {
            RuKuNo = rukuNo;
            RuKuType = rukuType;
            RuKuStatus = rukuStatus;
            RuKuDate = rukuDate;
            StorehouseName = storehouseName;
            ConnectNo = connectNo;
            ItemName = itemName;
            AttnName = attnName;
            RuKuNum = rukuNum;
            RuKuPrice = rukuPrice;
            DepartName = departName;
            ShenName = shenName;
            ShenDate = shenDate;
            Provider = provider;
            PhoneName = phoneName;
            PhoneNum = phoneNum;
            Remark = remark;
            Picture = picture;
        }
     }
}
